﻿@{
    ViewBag.Title = "众筹项目档位管理";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
}
@model LY.Entity.R_ProjectItem
@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
}

<div class="container">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">档位编辑</b></div>
                <div class="box_center">
                    <form method="post" id="frmEdit" action="@Url.Action("ProjectItemSave")" class="jqtransform">
                        <input id="hideId" name="Id" value="@Model.Id" type="hidden" />
                        <input id="ProjectId" name="ProjectId" value="@Model.ProjectId" type="hidden" />
                        <h4 style="margin-left: 15px">档位编辑</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>金额:</td>
                                <td class="">
                                    <input type="text" name="Amount" id="Amount" value="@Model.Amount" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>回报简介：</td>
                                <td class="">
                                    <input type="text" name="MRedoundContent" id="MRedoundContent" value="@Model.MRedoundContent" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>回报类别：</td>
                                <td class="">
                                    @Html.ResourceRadioList("RedoundType", "RedoundType", Model.RedoundType == null ? 0 : Model.RedoundType, true)
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>回报内容：</td>
                                <td class="">
                                    <input type="text" name="RedoundContent" id="RedoundContent" value="@Model.RedoundContent" class="input-text lh30" size="40">
                                </td>
                            </tr>

                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>运费：</td>
                                <td class="">
                                    <input type="text" name="Freight" id="Freight" value="@Model.Freight" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>回报天数：</td>
                                <td class="">
                                    <input type="text" name="DedoundDays" id="DedoundDays"  value="@Model.DedoundDays" class="input-text lh30" size="40">
                                    <span style="color: red;" id="MobilenumberValidate"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>创建时间：</td>
                                <td class="">
                                    <input type="text" name="Createtime" id="Createtime" value="@Model.Createtime" onclick="WdatePicker();" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>限定名额：</td>
                                <td class="">
                                    <input type="text" name="Limits" id="Limits" value="@Model.Limits" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>说明图片：</td>
                                <td class="">
                                    @*<input type="text" name="RedoundImage" id="RedoundImage" value="@Model.RedoundImage" class="input-text lh30" size="40">*@
                                    <div class="uploadImg">
                                        <img id="imgShow" style="width: 296px; height: 180px" src="@Model.RedoundImage" />
                                        <input type="hidden" id="TitlePic" name="TitlePic"  value="@Model.RedoundImage"/>
                                        <input type="hidden" id="Pictures" name="Pictures" value="@Model.RedoundImage"/>
                                        <input type="hidden" id="fileName" name="RedoundImage" value="@Model.RedoundImage"/>
                                        <input type="button" id="btnUploadImg" value="上传" />
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td class="td_right">&nbsp;</td>
                                <td class="">
                                    <input id="btnSave" type="button" name="button" class="btn btn82 btn_save2" value="保存">
                                    <input id="btnReturn" type="button" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{
    <script type="text/javascript">
        var util = {};
        var options = {
            uploadUrl: "@Url.Action("UploadImg", "Helper")"
        };
    </script>
    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
    <script src="~/Content/assets/app/common/ajaxupload.js"></script>
    <script src="~/Content/assets/app/project/ProjectItemEdit.js"></script>
}



